fix quote not reset if no options

This commit is contained in:
Владислав Чикалкин 2020-09-23 19:22:24 +03:00
parent 3d9d6c4abd
commit eea517dae1

View File

@ -39,6 +39,7 @@ const reactionEffects: IReactionEffect[] = [
})
.then(quotes => {
calculationStore.setOptions('selectQuote', quotes);
if (quotes.length === 0) calculationStore.setValue('quote', null);
})
.catch(err => {
throw err;