chore: minor stock generator improvements; code cleanup

This commit is contained in:
2025-03-09 16:20:58 +01:00
parent 862aebb158
commit 1eb5f3de9e
6 changed files with 56 additions and 47 deletions
+3
View File
@@ -110,6 +110,7 @@ export default defineComponent({
delete this.store.storageStockData[stockName];
this.store.chosenStorageStockName = '';
this.store.chosenStorageStockString = '';
try {
localStorage.setItem('savedStockData', JSON.stringify(this.store.storageStockData));
@@ -122,6 +123,8 @@ export default defineComponent({
try {
this.loadStockFromString(this.store.storageStockData[stockName].stockString);
this.store.chosenStorageStockName = stockName;
this.store.chosenStorageStockString = this.store.storageStockData[stockName].stockString;
this.$router.push('/');
} catch (error) {
console.log(error);