Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: "Did you not make this transaction?" link creates email template to invalid email address #479

Open
Yoronex opened this issue Jan 6, 2025 · 5 comments
Assignees

Comments

@Yoronex
Copy link
Member

Yoronex commented Jan 6, 2025

What browsers are you seeing the problem on?

No response

Is this happening on the SudoSOS point of sale or on the SudoSOS dashboard?

Dashboard

Current behaviour

Thunderbird does somehow not like the email template behind the "Did you not make this transaction?" button in the Transaction details dialog. Due to this, I am also not allowed by Thunderbird to send the email and I have to manually choose a recipient.

image

Desired behaviour

No response

Steps to reproduce

  1. Open SudoSOS Dashboard
  2. Open a transaction by clicking on the (i).
  3. Click on the "Did not make this transaction?" button in the bottom right.
  4. Open the link with Thunderbird.

Other information

No response

@tomudding
Copy link
Member

Functionality was introduced in October, however, ENV_FILE_PRODUCTION has not been updated since May so VITE_APP_TREASURER_EMAIL is not populated.

@JustSamuel
Copy link
Contributor

JustSamuel commented Jan 7, 2025

Edit: @tomudding it has been added, its not a secret anymore, just a variable.

@tomudding
Copy link
Member

Edit: @tomudding it has been added, its not a secret anymore, just a variable.

Sorry! However, then you should delete the old "secret" ENV_FILE_DEVELOPMENT/ENV_FILE_PRODUCTION.

@JustSamuel
Copy link
Contributor

JustSamuel commented Jan 9, 2025

Seems to be related to git commit hash problem? It "feels" like the env file not being loaded in production.

The only difference between production and test is a "./" in the file name of the .env file.

echo "${ENV_FILE}" > ./apps/${{ matrix.dir }}/.env

echo "${ENV_FILE}" > apps/${{ matrix.dir }}/.env

However @tomudding does not believe that to be the issue. I'm still pro testing it, or at least changing it, such that test and prod are the same.

@tomudding
Copy link
Member

However @tomudding does not believe that to be the issue. I'm still pro testing it, or at least changing it, such that test and prod are the same.

To elaborate; other env variables work as expected. However, I do agree with still changing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants