Compare commits

..

2 commits

Author SHA1 Message Date
alzalia1
8188fc61c9 fix: worflow mistake
All checks were successful
/ test (release) Successful in 4m23s
2025-08-20 14:13:08 +02:00
alzalia1
ce7338db2a fix: didn't check for empty sell 2025-08-20 14:12:45 +02:00
2 changed files with 12 additions and 1 deletions

View file

@ -15,4 +15,4 @@ jobs:
cache: true
- run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.35.1-x64
- run: flutter build web --release --wasm --base-href /app/
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web/* ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}

View file

@ -140,6 +140,17 @@ class _SellPageState extends State<SellPage> {
children: [
IconButton(
onPressed: () {
if (widget.viewModel.scannedBooks.isEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
"La vente doit comporter au moins un livre",
),
behavior: SnackBarBehavior.floating,
),
);
return;
}
if (double.tryParse(
price.text.replaceFirst(",", "."),
) ==