Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/helpers/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function toType (obj, bigNumber) {
/* Check if the object is an instance of the custom BigNumber class passed in as a prop
* If it matches, return 'bigNumber' type so it can be displayed appropriately
*/
if (bigNumber && obj?.constructor?.name === bigNumber?.name) {
if (bigNumber && obj?.constructor === bigNumber) {
return 'bigNumber'
}
let type = getType(obj)
Expand Down