Skip to content

OOB Auth Code with duplicates characters not showing #1424

@tieb62

Description

@tieb62

When an OOB Code contains multiples times the same character, say 3ACC for example, only 3AC is shown

I think that's because char is set as a key in this each block, which causes Svelte to fail because there is a duplicate key:

{#each authState?.identificationString as char (char)}

I think the fix would simply be to not use any key in this context, because keys are useful for optimizing changes, however, this value will never change.

Simply removing the (char) seems to work here: Svelte Playground
(If we try adding back (char) we get a each_key_duplicate error)

I can make a PR if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions