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
17 stars 4 forks source link

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

Open Oran-Dan opened 3 months ago

Oran-Dan commented 3 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