Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Nov 7, 2024
1 parent 05ddcc1 commit 67006de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions app/Services/NewsletterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ class NewsletterService
public static function subscribe(string $email, ?string $name = null)
{
$mergeFields = [];
if (filled($name))
{
if (filled($name)) {
$mergeFields = [
'MERGE1' => $name,
];

}
$response = rescue(
fn () => Newsletter::subscribe($email, $mergeFields),
Expand All @@ -32,7 +30,6 @@ public static function subscribe(string $email, ?string $name = null)
]);

// TODO: check if email registered as user

}

return $response;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/AdminOng/Projects/EditProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
:label="$t('external_links_title')"
>
<RepeaterComponent
:elements="originalProject.external_links"
:elements="project.external_links"
name="external_links"
:structure="[
{
Expand Down

0 comments on commit 67006de

Please sign in to comment.