* fix: dissasociation without vega wallet (806) * fix: removed unused import * chore: removed redundant func prepend0xIfNeeded * Update apps/token/src/routes/staking/disassociate/disassociate-page.tsx Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com> * Update apps/token/src/routes/staking/disassociate/disassociate-page.tsx Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com> Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
4 lines
104 B
TypeScript
4 lines
104 B
TypeScript
export function prepend0x(str: string) {
|
|
return !str || str.indexOf('0x') === 0 ? str : `0x${str}`;
|
|
}
|