We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0123086 + 401b898 commit 22317a1Copy full SHA for 22317a1
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