Commit 5e43726
committed
Guard useSavedIdentity against empty identity list
The SavedIdentity refactor changed useSavedIdentity to read from an
array, but getSavedIdentity returns undefined when no identity was
saved. This crashed CountItems which calls useSavedIdentity via
'the operation finished without error' without prior identity setup.
Match old behavior by returning early when no identity exists.
Issue: ZENKO-52021 parent 10e02f8 commit 5e43726
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
795 | 798 | | |
796 | 799 | | |
797 | 800 | | |
| |||
0 commit comments