We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0123086 commit 401b898Copy full SHA for 401b898
src/js/helpers/util.js
@@ -4,7 +4,7 @@ export function toType (obj, bigNumber) {
4
/* Check if the object is an instance of the custom BigNumber class passed in as a prop
5
* If it matches, return 'bigNumber' type so it can be displayed appropriately
6
*/
7
- if (bigNumber && obj?.constructor?.name === bigNumber?.name) {
+ if (bigNumber && obj?.constructor === bigNumber) {
8
return 'bigNumber'
9
}
10
let type = getType(obj)
0 commit comments