()
| 65 | } |
| 66 | |
| 67 | function notifyHeaderBalanceRefresh() { |
| 68 | if (typeof window !== "undefined") { |
| 69 | window.dispatchEvent(new CustomEvent("polyworld:refresh-header-balance")); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function humanizeError(msg: string, t: (key: string, vars?: Record<string, string | number>) => string): string { |
| 74 | const m = msg.toLowerCase(); |