Skip to content

Commit 1c48367

Browse files
authored
Merge pull request #97 from blocknative/fix/loading-error
Add loading param to validation. Closes #96
2 parents 4ce0190 + ad92607 commit 1c48367

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/validation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export function validateModal(modal: ReadyModal): never | void {
260260
eventCode,
261261
action,
262262
icon,
263+
loading,
263264
...otherParams
264265
} = modal
265266

@@ -295,6 +296,13 @@ export function validateModal(modal: ReadyModal): never | void {
295296
optional: true
296297
})
297298

299+
validateType({
300+
name: 'loading',
301+
value: loading,
302+
type: 'object',
303+
optional: true
304+
})
305+
298306
validateType({
299307
name: 'button',
300308
value: button,

0 commit comments

Comments
 (0)