api: handling 000000 hexToUX

This commit is contained in:
Hunter Miller 2021-11-30 16:56:49 -06:00
parent 0673fe9e3d
commit 39b4749b65

View File

@ -168,7 +168,7 @@ export const hexToUx = (hex: string): string => {
f.map(x => x.reverse().join('')),
f.reverse,
f.join('.')
)(hex.split(''));
)(hex.split('')) || '0';
return `0x${ux}`;
};