# fix\(web\): don't save a retention age when its switch takes focus · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/c72a309ffd145748f0344cbe3c94766699cc56b3)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: c72a309ffd145748f0344cbe3c94766699cc56b3

Requested commit: c72a309ffd145748f0344cbe3c94766699cc56b3

Commit: c72a309ffd145748f0344cbe3c94766699cc56b3

Tree: d097d9111675d616dd4f575e9f1594909bed2b4d

Author: macodev00

Committer: macodev00

## Message

```
fix(web): don't save a retention age when its switch takes focus

Blurring the age field committed the draft before the same rule's switch
could turn it off. Skip that commit when focus moves to the switch, and
store the latest value after commit so StorageSettings compiles under the
React Compiler.

```

## Parents

- [87649a232bf8b0fdad5cce2aac784a77af09e9d1](https://git.cafe/pingdotgg/t3code/commit/87649a232bf8b0fdad5cce2aac784a77af09e9d1?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/c72a309ffd145748f0344cbe3c94766699cc56b3?format=markdown)
