impierce / identity-wallet

A Tauri-based Identity Wallet for people to manage Decentralized Identities and Verifiable Credentials.
https://www.impierce.com
Apache License 2.0
25 stars 3 forks source link

[Bug] ```CancelUserFlow``` action throws error when dispatched with the "optional" payload empty #173

Closed Oran-Dan closed 2 months ago

Oran-Dan commented 7 months ago

Description

See title

Hardware Specification

Operating system: RAM: Cores: Device:

Steps to Reproduce the Bug

  1. Dispatch the CancelUserFlow action with no payload

Expected Behaviour

The redirect field is an optional string so it should be allowed to be left empty.

Actual Behaviour

it throws an error when payload is empty, no error when not empty.

Errors

invalid args action for command handle_action: invalid type: null, expected struct CancelUserFlow