added shouldDirty (#2776)

This commit is contained in:
Hrant Abrahamyan 2022-10-26 12:07:03 +04:00 committed by GitHub
parent e87178136c
commit e67d940981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,11 @@ const TimeToRetainBtn: React.FC<Props> = ({ inputName, text, value }) => {
<S.Button
isActive={parseFloat(watchedValue) === value}
type="button"
onClick={() => setValue(inputName, value)}
onClick={() =>
setValue(inputName, value, {
shouldDirty: true,
})
}
>
{text}
</S.Button>