I tried changing a default parameter value with this:
ALTER PROCEDURE [dbo].[my_sp] @currentDate datetime = GETDATE()
and all the SQL pre-c
You can try as follow:
Set @CurrentDate=IsNull(@CurrentDate,GetDate())