diff --git a/Routes/About.js b/Routes/About.js
index a5389a1..d391242 100644
--- a/Routes/About.js
+++ b/Routes/About.js
@@ -30,7 +30,7 @@ export default function About() {
/>
{title("2638 Scout")}
- {text("Version 4.0 2/11/2022")}
+ {text("Version 4.0.1 2/11/2022")}
{spacer}
diff --git a/Routes/PastMatchesComponents/Header.js b/Routes/PastMatchesComponents/Header.js
index 294c916..1f212db 100644
--- a/Routes/PastMatchesComponents/Header.js
+++ b/Routes/PastMatchesComponents/Header.js
@@ -88,7 +88,12 @@ export default function Header() {
FileSystem.writeAsStringAsync(FileSystem.documentDirectory + path, output, { encoding: FileSystem.EncodingType.UTF8 });
// share the new csv file we just made
- await Sharing.shareAsync(FileSystem.documentDirectory + path);
+ try {
+ await Sharing.shareAsync(FileSystem.documentDirectory + path);
+ } catch (e) {
+ alert(e.message);
+ }
+
}
return (
diff --git a/Routes/ScoutComponents/Header.js b/Routes/ScoutComponents/Header.js
index 3193b4f..0331ae6 100644
--- a/Routes/ScoutComponents/Header.js
+++ b/Routes/ScoutComponents/Header.js
@@ -81,8 +81,6 @@ export default function Header() {
AsyncStorage.setItem("matches", JSON.stringify(matches));
// now update matches in redux
dispatch(writeMatch(final));
- // "hey you saved a match lmao"
- //alert("Saved Match #" + kpv["MatchNumber"]);
// now we're finished
successCallback(final);
@@ -118,7 +116,7 @@ export default function Header() {
}
}
- async function saveAndExport() {
+ function saveAndExport() {
save(final => {
if (final === undefined) return;
@@ -147,12 +145,16 @@ export default function Header() {
}
}
- function mobileExport(output) {
+ async function mobileExport(output) {
const path = "./data.csv";
FileSystem.writeAsStringAsync(FileSystem.documentDirectory + path, output, { encoding: FileSystem.EncodingType.UTF8 });
// share the new csv file we just made
- Sharing.shareAsync(FileSystem.documentDirectory + path);
+ try {
+ await Sharing.shareAsync(FileSystem.documentDirectory + path);
+ } catch (e) {
+ alert(e.message);
+ }
}
return (
@@ -174,7 +176,7 @@ export default function Header() {
}}
/>
- save()}>Save
+ save(() => alert("Saved Match #" + kpv["MatchNumber"]))}>Save
saveAndExport()}>Save and Export