mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-20 23:18:00 +03:00
api: handling 000000 hexToUX
This commit is contained in:
parent
0673fe9e3d
commit
39b4749b65
@ -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}`;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user