mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-11-28 21:39:56 +00:00
fix: TypeScript error in HEZStakingModal dispatchError type
This commit is contained in:
1 parent
0d9b8fee4f
commit
6b8a34f047
3 files changed
+10
-7
No files matched your search
@@ -160,7 +160,8 @@ export function HEZStakingModal({ isOpen, onClose }: HEZStakingModalProps) {
|
||||
dispatchError,
|
||||
}: {
|
||||
status: { isFinalized: boolean };
|
||||
dispatchError?: { isModule: boolean; asModule: unknown; toString: () => string };
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
dispatchError?: { isModule: boolean; asModule: any; toString: () => string };
|
||||
}) => {
|
||||
if (status.isFinalized) {
|
||||
if (dispatchError) {
|
||||
@@ -210,7 +211,8 @@ export function HEZStakingModal({ isOpen, onClose }: HEZStakingModalProps) {
|
||||
dispatchError,
|
||||
}: {
|
||||
status: { isFinalized: boolean };
|
||||
dispatchError?: { isModule: boolean; asModule: unknown; toString: () => string };
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
dispatchError?: { isModule: boolean; asModule: any; toString: () => string };
|
||||
}) => {
|
||||
if (status.isFinalized) {
|
||||
if (dispatchError) {
|
||||
@@ -261,7 +263,8 @@ export function HEZStakingModal({ isOpen, onClose }: HEZStakingModalProps) {
|
||||
dispatchError,
|
||||
}: {
|
||||
status: { isFinalized: boolean };
|
||||
dispatchError?: { isModule: boolean; asModule: unknown; toString: () => string };
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
dispatchError?: { isModule: boolean; asModule: any; toString: () => string };
|
||||
}) => {
|
||||
if (status.isFinalized) {
|
||||
if (dispatchError) {
|
||||
|
||||
Reference in new issue
Block a user