[Update] Minor detail fixed

This commit is contained in:
Baghaztra 2025-09-17 13:28:46 +07:00
parent 428fedb944
commit 85138291b5
2 changed files with 1 additions and 6 deletions

View File

@ -164,11 +164,7 @@ const inputItem = async () => {
info.value = ""; info.value = "";
}, 3000); }, 3000);
} catch (err) { } catch (err) {
if (err == "") { error.value = "Item tidak ditemukan";
error.value = "Error: Item tidak ditemukan";
} else {
error.value = err;
}
info.value = ""; info.value = "";
hargaJual.value = null; hargaJual.value = null;
item.value = null; item.value = null;

View File

@ -287,7 +287,6 @@ const simpanTransaksi = async (dataTransaksi) => {
props.pesanan.value = []; props.pesanan.value = [];
props.isOpen = false; props.isOpen = false;
alert('Transaksi berhasil disimpan!');
window.location.reload(); window.location.reload();
} catch (error) { } catch (error) {