mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-14 02:51:12 +00:00
fix: TypeScript error in HEZStakingModal dispatchError type
This commit is contained in:
@@ -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