A local-first personal finance app
:speech_balloon: change misleading automatic bug-report text (#453)
Matiss Janis Aboltins3424e0eea64e
diff --git a/packages/loot-core/src/client/shared-listeners.js b/packages/loot-core/src/client/shared-listeners.jsindex 287a860f4d..343a247d03 100644--- a/packages/loot-core/src/client/shared-listeners.js+++ b/packages/loot-core/src/client/shared-listeners.js@@ -46,6 +46,8 @@ export function listenForSyncEvent(actions, store) {let notif = null;let learnMore ='[Learn more](https://actualbudget.github.io/docs/Getting-Started/sync#debugging-sync-issues)';+ const githubIssueLink =+ 'https://github.com/actualbudget/actual/issues/new?assignees=&labels=bug%2Cneeds+triage&template=bug-report.yml&title=%5BBug%5D%3A+';switch (subtype) {case 'out-of-sync':@@ -235,9 +237,7 @@ export function listenForSyncEvent(actions, store) {break;case 'apply-failure':notif = {- message:- "We couldn't apply that change to the database. This is a bug, " +- 'and it has been reported.'+ message: `We couldn't apply that change to the database. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`};break;case 'beta-version':@@ -246,9 +246,7 @@ export function listenForSyncEvent(actions, store) {break;default:notif = {- message:- 'We had problems syncing your changes. This is a bug, ' +- 'and it has been reported.'+ message: `We had problems syncing your changes. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`};}