Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Atatakai authored and Atatakai committed Jun 3, 2024
1 parent bb783b4 commit 754dbaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/components/Main/MainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,16 @@ export const MainHeader = () => {
// });
// }

const isFirstTimeStaking = totalOlasStakedBalance === 0;

// For now POST /api/services will take care of creating, starting and updating the service
return ServicesService.createService({
serviceTemplate,
deploy: true,
})
.then(() => {
setServiceStatus(DeploymentStatus.DEPLOYED);
if (totalOlasStakedBalance === 0) {
if (isFirstTimeStaking) {
showNotification?.(
`Your agent is running and you've staked ${minimumStakedAmountRequired} OLAS!`,
);
Expand Down

0 comments on commit 754dbaf

Please sign in to comment.