I need the timer to reset as soon as i hits 0

How do i get the timer to reset everytime i hits 0?

Script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SpinStopper : MonoBehaviour
{

public double timer = 1;
public GameObject SpinCB;
public GameObject RealCB;
void Update()
{
    timer -= Time.deltaTime;

    if (timer <= 0)
    {
        SpinCB.SetActive(false);
        RealCB.SetActive(true);
        
    }
}

}

Create another variable to hold the original value of timer (the value you want it to reset to each time), then set your timer variable to the original timer value once it reaches 0.

public double originalTimer = 1;
public double timer = 1;
 public GameObject SpinCB;
 public GameObject RealCB;
 void Update()
 {
     timer -= Time.deltaTime;
     if (timer <= 0)
     {
         timer = originalTimer;
         SpinCB.SetActive(false);
         RealCB.SetActive(true);
     }
 }