fixed cancel flow

This commit is contained in:
Michele Balistreri 2022-07-12 09:28:10 +02:00
parent efe6c94bbf
commit d4b99d0b77

View File

@ -69,7 +69,7 @@ func (f *KeycardFlow) Resume(params FlowParams) error {
func (f *KeycardFlow) Cancel() error {
prevState := f.state
if prevState != Idle {
if prevState == Idle {
return errors.New("cannot cancel idle flow")
}